package com.sftz.modules.admin.authority.function.service.impl;

import org.nutz.dao.Cnd;
import org.nutz.ioc.loader.annotation.IocBean;

import com.sftz.framework.res.entities.SFunctionEntity;
import com.sftz.modules.admin.authority.function.service.FunctionService;
import com.uxuexi.core.web.base.service.BaseService;

@IocBean(name = "functionService")
public class FunctionServiceImpl extends BaseService<SFunctionEntity> implements FunctionService {

	@Override
	public SFunctionEntity findFuctionByRequestPath(String requestPath) {
		return dbDao.fetch(SFunctionEntity.class, Cnd.where("url", "LIKE", "%" + requestPath + "%"));
	}
}
